package com.bmldyq.t0602;

/**
 * 静态内部类,可以定义静态成员变量和非静态成员变量,只能访问外部类的静态成员
 */
public class StaticOut {

    private static int count = 12;

    private static  int getCount(){
        return count;
    }

    static class  Inner{
        private  static int c = 12;
        protected    int cs = 12;
        static void print(){
            System.out.println(count);
            System.out.println(getCount());
        }
         void print2(){
            System.out.println(count);
            System.out.println(getCount());
        }
    }
}


